<head>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/style_print.css" />
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		$('#report_table').dataTable( { "bPaginate": false } );
	} );
	</script>
</head>

<h2>Overdue Loans Of Subscribers In Arrears</h2>

<p><?php echo $subscribers->num_rows() ?> results returned.</p> 

<table id="report_table">
<thead>
<tr>
	<th>Call Number</th>
	<th>Title</th>
	<th>Access Number</th>
	<th>Name</th>
	<th>Subscriber Status</th>
</tr>
</thead>
<tbody>
<?php
foreach ($subscribers->result() as $subscriber)
{
	echo '<tr>';
	
	// Details
	echo '<td>' . $subscriber->call_number . '</td>';
	echo '<td>' . $subscriber->title . '</td>';
	echo '<td>' . $subscriber->access_id . '</td>';
	echo '<td>' . $subscriber->first_name . ' ' . $subscriber->last_name . ' (' . $subscriber->subscriber_id .')' . '</td>';
	echo '<td>' . $subscriber->subscriber_status . '</td>';
}
?>
</tbody>
</table>